package com.example.demodataserver.service;

import com.example.demoapi.base.BaseInfoEntity;
import com.example.demoapi.base.BaseInfoService;
import com.example.registerstarter.anno.RemoteService;

import java.util.Date;

/**
 * @author：kangxuan
 * @date：2024/10/9 4:07 PM
 * @desc:
 */
@RemoteService
public class BaseInfoServiceImpl implements BaseInfoService {
    @Override
    public BaseInfoEntity getBaseInfo(String name) {
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        System.out.println("call:" + new Date());
        return BaseInfoEntity.build().setName(name);
    }
}
